namespace yiCommerce.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class status_product : DbMigration
    {
        public override void Up()
        {
        
            AddColumn("dbo.Statuses", "ProductId", c => c.Int());
            AddForeignKey("dbo.Statuses", "ProductId", "dbo.Product", "Id");
            CreateIndex("dbo.Statuses", "ProductId");
        }
        
        public override void Down()
        {
          
            DropIndex("dbo.Statuses", new[] { "ProductId" });
            DropForeignKey("dbo.Statuses", "ProductId", "dbo.Product");
            DropColumn("dbo.Statuses", "ProductId");
          
        }
    }
}
